package com.sann.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@ComponentScan(basePackages = "com.sann")
@EnableSwagger2
/*将本应用服务注册到nacos中，其他服务模块就可以远程调用该服务*/
@EnableDiscoveryClient
/*识别@FeignClient注解定义的feign客户端（启用feign客户端-识别得了@FeignClient）*/
@EnableFeignClients
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
    }
}
